package gui;
-import java.awt.Color;
-import java.awt.Component;
import java.awt.Font;
import java.awt.Rectangle;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
-import java.awt.event.MouseAdapter;
-import java.awt.event.MouseEvent;
import java.rmi.Naming;
import java.rmi.RemoteException;
import java.util.Enumeration;
import javax.swing.border.EmptyBorder;
import javax.swing.table.DefaultTableModel;
-
-
import common.AccountInterface;
-import common.OwnerInterface;
+import common.AdminInterface;
+
import configuration.___IntNames;
import domain.Owner;
private JTable table;
private DefaultTableModel tableModel;
- private OwnerInterface Own = null;
+ private AdminInterface AdM = null;
private Vector<Owner> owners = new Vector<Owner>();
/**
setContentPane(contentPane);
contentPane.setLayout(null);
try {
- Own = (OwnerInterface) Naming
- .lookup(___IntNames.OwnerManager);
+ AdM = (AdminInterface) Naming
+ .lookup(___IntNames.AdminManager);
} catch (Exception e1) {
System.out
.println("Error accessing remote authentication: "
+ e1.toString());
}
- this.owners = Own.getOwners();
+ this.owners = AdM.getAllOwners();
JLabel lblNewLabel = new JLabel();
lblNewLabel.setFont(new Font("Tahoma", Font.PLAIN, 27));
lblNewLabel.setBounds(23, 41, 536, 33);